//
//  CZMainViewController.m
//  UISplitViewController练习
//
//  Created by chao on 15/2/28.
//  Copyright (c) 2015年 chao. All rights reserved.
//

#import "CZMainViewController.h"
#import "CZFoodsViewController.h"
#import "CZFoodTyoeViewController.h"

@interface CZMainViewController ()

@end

@implementation CZMainViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    CZFoodTyoeViewController *foodTypeVc = [[[self.viewControllers firstObject] viewControllers] firstObject];
    
    CZFoodsViewController<UISplitViewControllerDelegate, CZFoodTyoeViewControllerDelegate> *foodsVc = [[[self.viewControllers lastObject] viewControllers] firstObject];
    foodTypeVc.delegate = foodsVc;
    self.delegate = foodsVc;
}
@end
